<!-- include tpl=head_lay -->
<script type="text/javascript">
$(document).ready(function(){
	$("#pay_submit").submit(function(){
		
	});
});
</script>
<form method="post" id="pay_submit" class="layui-form" onsubmit="return $.admin_wealth.save()">
<!-- if $id --><input type="hidden" name="id" id="id" value="{$id}" /><!-- /if -->
<div class="layui-card">
	<div class="layui-card-body">
		<div class="layui-form-item">
			<label class="layui-form-label">
				{lang名称}
			</label>
			<div class="layui-input-inline default-auto">
				<input type="text" name="title" id="title" value="{$rs.title}" class="layui-input" />
			</div>
			<div class="layui-form-mid">
				{lang给用户的财富取一个名称，如积分，收益，威望等}
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">
				{lang标识}
			</label>
			<div class="layui-input-inline">
				<input type="text" name="identifier" class="layui-input" id="identifier" value="{$rs.identifier}" />
			</div>
			<div class="layui-input-inline auto gray lh38" id="HTML-POINT-PHPOK-IDENTIFIER">
				<div class="layui-btn-group">
					<input type="button" value="随机" onclick="$.admin.rand()" class="layui-btn layui-btn-sm" />
					<input type="button" value="清空" onclick="$('#identifier').val('')" class="layui-btn layui-btn-sm layui-btn-danger" />
				</div>
			</div>
			<div class="layui-form-mid">
				{lang仅限字母、数字及下划线，且必须是字母开头}
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">
				<i class="layui-icon layui-icon-tips" lay-tips="{lang建议尺寸1920x400，非必填}"></i>
				{lang大图}
			</label>
			<div class="layui-input-block">
				{func form_edit banner $rs.banner text form_btn=image}
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">
				<i class="layui-icon layui-icon-tips" lay-tips="{lang建议尺寸500x500，非必填}"></i>
				{lang小图}
			</label>
			<div class="layui-input-block">
				{func form_edit thumb $rs.thumb text form_btn=image}
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">
				{lang字体图标}
			</label>
			<div class="layui-input-inline short">
				<input type="text" name="iconfont" value="{$rs.iconfont}" class="layui-input" />
			</div>
			<div class="layui-form-mid">
				<a href="//www.phpok.com/blog-fonticon-unicode.html" target="_blank">{lang输入字体 Unicode 代码，查看手册}</a>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">
				{lang计量单位}
			</label>
			<div class="layui-input-inline">
				<input type="text" name="unit" id="unit" value="{$rs.unit}" class="layui-input" />
			</div>
			<div class="layui-form-mid">
				{lang如元，分，个等}
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">
				{lang最低值}
			</label>
			<div class="layui-input-inline">
				<input type="text" class="layui-input" name="min_val" id="min_val" value="{func floatval $rs.min_val}">
			</div>
			<div class="layui-form-mid">
				{lang设置最低使用的值，低于此值的财富不可用，只能填写大于0的数值}
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">
				{lang保留位数}
			</label>
			<div class="layui-input-inline auto">
				<input type="radio" name="dnum" value="0"{if !$rs.dnum} checked{/if} title="{lang整数}" />
				<input type="radio" name="dnum" value="1"{if $rs.dnum == 1} checked{/if} title="{lang一位小数}" />
				<input type="radio" name="dnum" value="2"{if $rs.dnum == 2} checked{/if} title="{lang两位小数}" />
			</div>
			<div class="layui-form-mid">
				{lang定义财富的计量长度，整数还是浮点，保留几位数}
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">
				{lang充值}
			</label>
			<div class="layui-input-inline auto">
				<input type="radio" name="ifpay" lay-filter="ifpay" value="0"{if !$rs.ifpay} checked{/if} title="{lang禁用}" />
				<input type="radio" name="ifpay" lay-filter="ifpay" value="1"{if $rs.ifpay} checked{/if} title="{lang启用}" />
			</div>
			<div class="layui-form-mid">
				{lang请注意设置好兑换比例}
			</div>
		</div>
		<div class="layui-form-item" id="ratio_li" style="display:{$rs.ifpay ? 'block' : 'none'}">
			<label class="layui-form-label">
				{lang充值比例}
			</label>
			<div class="layui-input-inline">
				<input type="text" name="pay_ratio" id="pay_ratio" value="{$rs.pay_ratio}" class="layui-input" />
			</div>
			<div class="layui-form-mid">
				{lang即1元可兑换多少财富}
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">
				{lang抵现}
			</label>
			<div class="layui-input-inline auto">
				<input type="radio" name="ifcash" lay-filter="ifcash" value="0"{if !$rs.ifcash} checked{/if} title="{lang禁用}" />
				<input type="radio" name="ifcash" lay-filter="ifcash" value="1"{if $rs.ifcash} checked{/if} title="{lang启用}" />
			</div>
			<div class="layui-form-mid">
				{lang请注意设置好比例，启用后可直接当现金用}
			</div>
		</div>
		<div class="layui-form-item" id="ratio2_li" style="display:{$rs.ifcash ? 'block' : 'none'}">
			<label class="layui-form-label">
				{lang抵现比例}
			</label>
			<div class="layui-input-inline">
				<input type="text" name="cash_ratio" id="cash_ratio" value="{$rs.cash_ratio}" class="layui-input" />
			</div>
			<div class="layui-form-mid">
				{lang即100财富可抵用多少货币，货币直接使用当前站点的货币计算}
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">
				{lang审核}
			</label>
			<div class="layui-input-inline auto">
				<input type="radio" name="ifcheck" lay-filter="ifcheck" value="0"{if !$rs.ifcheck} checked{/if} title="{lang否}" />
				<input type="radio" name="ifcheck" lay-filter="ifcheck" value="1"{if $rs.ifcheck} checked{/if} title="{lang是}" />
			</div>
			<div class="layui-form-mid">
				{lang设置为是否，当前财富的行业都不需要审核直接通过，设为是则必须管理员审核}
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">
				{lang排序}
			</label>
			<div class="layui-input-inline">
				<input type="text" name="taxis" id="taxis" value="{$rs.taxis ? $rs.taxis : 255}" class="layui-input" />
			</div>
			<div class="layui-form-mid">
				{lang定义排序，范围在1-255，值越小越往前靠}
			</div>
		</div>
	</div>
</div>
<div class="submit-info-clear"></div>
<div class="submit-info">
	<div class="layui-container center">
		<input type="submit" value="{lang提交}" class="layui-btn layui-btn-lg layui-btn-danger" />
		<input type="button" value="{lang取消关闭}" class="layui-btn layui-btn-lg layui-btn-primary" onclick="$.admin.close()" />
	</div>
</div>
</form>
<!-- include tpl=foot_lay -->